package com.itheima.service.impl;


import com.itheima.bean.pojo.Role;
import com.itheima.dao.RoleDao;
import com.itheima.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//业务层：业务实现类 （角色）
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleDao roleDao;

    @Override
    public List<Role> queryRoles() {
        //调用dao层功能： 查询所有角色
        List<Role> roleList = roleDao.findAllRole();

        return roleList;
    }
}
